package zuoye6;

public class ThreadD extends Thread{
	int num;
	public ThreadD(int num) {
		super();
		this.num = num;
	}
	@Override
	public void run() {
		synchronized (FizzBuzz.lock) {
			if(num%3!=0&&num%5!=0){
				FizzBuzz.number(num);
			}	 
			FizzBuzz.flag=false;
			//FizzBuzz.lock.notifyAll();
		}



	}
}
